export const mixin={
    data () {
        return {
            guideId:2110
        }
    }
}
export const FootList=[
    {path:'movie',ico:'icon-caidanicondianyinghui',text:"电影",name:'movie'},
    {path:'news',name:'news',ico:'icon-zixun1',text:"资讯"},
    {path:'shop',name:'shop',ico:'icon-shangpin',text:"商城",hot:true},
    {path:'cinema',name:'cinema',ico:'icon-cinema',text:"影院"},
    {path:'mine',name:'mine',ico:'icon-mine1',text:"我的"},
]

// 防抖 
/**
* @desc 函数防抖
* @param func 目标函数
* @param wait 延迟执行毫秒数
*/
export function debounce(func, wait) {
    let timeout = null
    return function () {
        let context = this
        let args = arguments
        if (timeout) clearTimeout(timeout)
        timeout = setTimeout(() => {
            func.apply(context, args)
        }, wait)
    }
  }